home *** CD-ROM | disk | FTP | other *** search
/ Fritz: All Fritz / All Fritz.zip / All Fritz / FILES / UTILREEN / LPTX.LZH / REDIRPRN.ZIP / REDIRPRN.DOC
Text File  |  1986-05-13  |  2KB  |  34 lines

  1.                      Redirect Printer Output
  2.                      John Axline/Los Angeles
  3.  
  4. This program redirects output which was intended to go to the printer, and
  5. instead writes it to a file (or any other device to which DOS can do I/O).
  6. The file can then be examined or modified (if you have tools appropriate to
  7. the job), and of course can be printed when desired simply by doing a COPY
  8. from the file to PRN:
  9.  
  10. It can be used with any program that will run under DOS 2 or 3 so long as the
  11. program accesses the printer using the normal DOS functions  or the BIOS
  12. routines (INT 17h).
  13.  
  14. It requires DOS 2.0 or later, and about 10K more memory than your program
  15. normally uses.
  16.  
  17. This program applies redirection to the "standard printer device" handle,
  18. which is 4, using DOS function 46h, "force a duplicate of a handle".  This
  19. program runs your program as a child process; the child inherits any redirection
  20. the parent has invoked.
  21.  
  22. Invoke the process as follows:
  23.  
  24.        REDIRPRN <yourjob.exe> <savefile.out> <any arguments yourjob wants>
  25.  
  26. If you forget, invoke the program without arguments and it will remind you.
  27.  
  28. This program was originally written to capture the output of a popular font
  29. generator program that supports only a few printers, so it could be passed
  30. through a filter program to an unsupported printer.  
  31.  
  32. The source is for DeSmet's C-Ware compiler, with thanks as usual to those fine
  33. folks.